#include <Arduino.h>

// put function declarations here:
int led_pin = 3;
int microphone_pin = 0;

void setup()
{
  // put your setup code here, to run once:
  pinMode(led_pin, OUTPUT);
  Serial.begin(9600);
}

void loop()
{
  // put your main code here, to run repeatedly:
  int microphone_val = analogRead(microphone_pin);
  Serial.print("microphone:");
  Serial.println(microphone_val);
  if (microphone_val > 70){
    digitalWrite(led_pin, HIGH);
  }
  else
  {
    digitalWrite(led_pin, LOW);
  }
}

// put function definitions here: